.agent-app {
  font-family: HarmonyOS Sans SC;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  .app-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    .app-content-box{
      flex: 1;
      display: flex;
      flex-direction: column;
      padding: 20px 5px;
      overflow: hidden;
      .app-content-box-header{
        display: flex;
        align-items: center;
        gap: 15px;
        font-size: 16px;
        color: var(--text-color1);
        height: 58px;
        padding: 0 24px;
        background: var(--bg-color11);
        border-radius: 8px 8px 0px 0px;
        border-bottom: 1px solid var(--bd-color6);
        overflow: hidden;
        .model-type{
          display: flex;
          flex-direction: row;
          align-items: center;
          padding: 1px 6px;
          gap: 4px;
          border-radius: 4px;
          color: var(--text-color7);
          background-color: var(--bg-color39);
          .model-type-name{

            font-size: 12px;
            font-weight: 500;
            line-height: 22px;
          }
        }
        .publish{
          cursor: pointer;
          margin-left: auto;
          display: flex;
          flex-direction: row;
          align-items: center;
          padding: 5px 12px;
          gap: 8px;
          border-radius: 4px;
          background: #4C3BDC;
          color: #fff;
        }
      }
      .app-content-data{
        display: flex;
        flex: 1;
        overflow: hidden;
        .app-content-left{
          width: 60%;
          display: flex;
          flex-direction: column;
          border-radius: 0 0 8px 8px;
          background: var(--bg-color11);
          overflow: hidden;
          .left-header{
            display: flex;
            align-items: center;
            height: 58px;
            padding: 0 24px;
            border-bottom: 1px solid var(--bd-color6);
            overflow: hidden;
            .label{
              flex: 1;
              color: var(--text-color1);
              cursor: pointer;
              font-size: 18px;
              font-weight: 500;
            }
            .model{
              display: flex;
              align-items: center;
              color: var(--text-color1);
              background: var(--bg-color17);
              border: 1px solid var(--bd-color5);
              border-radius: 8px;
              padding: 6px 12px;
              .modelSvg{
                width: 22px;
                height: 22px;
                margin-right: 5px;
              }
              .FilterSvg{
                width: 16px;
                height: 16px;
                margin-left: 20px;
              }
            }
          }
          .left-content-data{
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: 20px 24px;
            overflow: hidden;
            .left-content-data-title{
              cursor: pointer;
              display: flex;
              gap: 5px;
              font-size: 14px;
              font-weight: 500;
              color: var(--text-color1);
              .useToolBox{
                margin-left: auto;
                display: flex;
                gap: 8px;
              }
            }
            .left-content-data-info{
              padding: 15px 0;
              display: flex;
              gap: 20px;
              border-bottom: 1px solid var(--bd-color6);
              .icon{
                position: relative;
                display: flex;
                flex-direction: column;
                gap: 10px;
                img{
                  cursor: pointer;
                }
                .size{
                  font-size: 12px;
                  color: #9E91C2;
                }
                .ai{
                  position: absolute;
                  left: 75px;
                  bottom: 22px;
                }
              }
              .info-data{
                flex: 1;
                display: flex;
                flex-direction: column;
                gap: 20px;
                .ant-input{
                  color: var(--text-color1);
                  padding: 9px;
                  height: 38px;
                  border: 1px solid var(--bd-color1);
                  background-color: var(--bg-color26);
                  &::placeholder{
                    color: var(--text-color9);
                  }
                }
                textarea.ant-input {
                  width: 100%;
                  height: auto;
                  resize: none;
                }
              }
            }
            .left-content-data-capacity{
              flex: 1;
              display: flex;
              gap: 20px;
              flex-direction: column;
              margin-top: 24px;
              overflow: hidden;
              .capacity-header{
                display: flex;
                align-items: center;
                justify-content: space-between;
                .tabs{
                  display: flex;
                  align-items: center;
                  gap: 10px;
                  .tab{
                    cursor: pointer;
                    color: #9E9AE2;
                    font-size: 14px;
                    font-weight: 500;
                    display: flex;
                    align-items: center;
                    gap: 5px;
                  }
                  .tabActive{
                    color: var(--text-color1);
                  }
                }
                .operate{
                  display: flex;
                  gap: 20px;
                  img{
                    width: 16px;
                    height: 16px;
                    cursor: pointer;
                  }
                  .template{
                    color: var(--text-color1);
                    cursor: pointer;
                    display: flex;
                    gap: 5px;
                    align-items: center;
                  }
                }
              }
              .capacity-content{
                flex: 1;
                overflow: auto;
                .ant-spin-nested-loading,.ant-spin-container{
                  height: 100%;
                }
                .instruction {
                  color: var(--text-color1);
                  padding: 0;
                  width: 100%;
                  height: 100%;
                  resize: none;
                  border: none;
                  background-color: transparent;
                  &::placeholder{
                    color: var(--text-color9);
                  }
                }
                .extend{
                  display: flex;
                  flex-direction: column;
                  gap: 15px;
                  .ant-input{
                    color: var(--text-color1);
                    padding: 9px;
                    height: 38px;
                    border: 1px solid var(--bd-color1);
                    background-color: var(--bg-color26);
                    &::placeholder{
                      color: var(--text-color9);
                    }
                  }
                  textarea.ant-input {
                    width: 100%;
                    height: auto;
                    resize: none;
                  }
                }
              }
            }
          }
        }
        .app-content-right{
          position: relative;
          display: flex;
          flex-direction: column;
          flex: 1;
          overflow: hidden;
          #drag{
            position: absolute;
            cursor: col-resize;
            width: 5px;
            height: 100%;
          }
          .right-header{
            display: flex;
            align-items: center;
            gap: 20px;
            height: 58px;
            padding: 0 24px;
            overflow: hidden;
            .label{
              flex: 1;
              color: var(--text-color1);
              cursor: pointer;
              font-size: 18px;
              font-weight: 500;
            }
            svg{
              color: var(--text-color1);
              cursor: pointer;
            }
          }
          .agentExtend{
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            color: var(--text-color1);
            .agentName{
              margin-top: 20px;
              font-size: 20px;
            }
            .prologue{
              cursor: pointer;
              margin-top: 50px;
              margin-bottom: 20px;
              font-size: 16px;
              font-weight: 500;
            }
            .recommendedQuestion{
              cursor: pointer;
              margin-bottom: 10px;
              padding: 12px;
              border-radius: 8px;
              background: var(--bg-color48);
              border: 1px solid var(--bd-color10);
            }
          }
          .dialogues{
            margin: 20px;
            flex: 1;
            flex-direction: column;
            overflow-y: auto;
            &::-webkit-scrollbar{
              width: 0;
              height: 0;
            }
            .ai{
              color: var(--text-color1);
              clear: right;
              font-size: 16px;
              .anticon{
                color: inherit;
                font-size: 20px;
              }
            }
            .dialogue{
              display: flex;
              flex-direction: column;
              gap: 20px;
              margin-bottom: 20px;
              .question{
                display: flex;
                flex-direction: column;
                align-items: end;
                gap: 5px;
                color: var(--text-color1);
                .fileOperate{
                  display: flex;
                  gap: 10px;
                  cursor: pointer;
                  border-radius: 6px;
                  padding: 8px 12px;
                  background: var(--bg-color12);
                  border: 1px solid var(--bd-color1);
                  .fileCount{
                    font-size: 14px;
                    font-weight: 500;
                    svg{
                      vertical-align: bottom;
                    }
                  }
                }
                .markdown-content{
                  width: fit-content;
                  font-size: 16px;
                  padding: 12px 14px;
                  background: var(--bg-color18);
                  border-radius: 8px;
                }
              }
              .answer{
                width: fit-content;
                max-width: 100%;
                display: flex;
                flex-direction: column;
                gap: 10px;
                color: var(--text-color1);
                padding: 12px 14px;
                font-size: 16px;
                background: var(--bg-color19);
                border-radius: 8px;
                overflow: hidden;
                .operate{
                  display: flex;
                  justify-content: flex-end;
                  gap: 10px;
                  padding-top: 10px;
                  border-top: 1px solid #2B2A67;
                  .duration{
                    margin-right: auto;
                  }
                  svg{
                    cursor: pointer;
                    &:hover{
                      background: var(--bg-color13);
                    }
                  }
                }
              }
            }
          }
          .inputDiv{
            border-radius: 16px;
            border: 1px solid #8B81FF;
            margin: 20px;
            background: var(--bg-color9);
            .inputFileCascader{
              display: block;
              height: 0;
              overflow: hidden;
            }
            .input{
              display: flex;
              gap: 10px;
              padding: 18px;
              flex-direction: column;
              textarea{
                color: var(--text-color1);
                font-size: 16px;
                resize: none;
                border: none;
                background-color: transparent;
                &::placeholder{
                  color: var(--text-color2);
                }
                &::-webkit-scrollbar{
                  width: 0;
                  height: 0;
                }
              }
              textarea:focus{
                box-shadow: none;
              }
              .operate {
                display: flex;
                justify-content: space-between;
                .link {
                  color: var(--text-color1);
                  display: flex;
                  gap: 10px;
                  align-items: center;
                  svg{
                    cursor: pointer;
                  }
                }
                .send{
                  cursor: not-allowed;
                  color: #5036B1;
                }
                .sendActive{
                  cursor: pointer;
                  color: #3461E2;
                }
              }
            }
          }
        }
      }
    }
  }
  .waxberry-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    background: rgba(0, 0, 0, 0.5);
    .waxberry-modal-box {
      display: flex;
      flex-direction: column;
      max-height: 100vh;
      border-radius: 8px;
      background: var(--bg-color25);
      overflow: hidden;
      .waxberry-modal-title {
        color: var(--text-color1);
        padding: 15px 24px;
        font-size: 18px;
        font-weight: bold;
        border-bottom: 1px solid var(--bd-color1);
        .anticon {
          cursor: pointer;
          color: var(--text-color1);
          float: right;
          font-size: 14px;
          margin-top: 7px;
        }
      }
      .waxberry-modal-content {
        display: flex;
        overflow: hidden;
        .form{
          width: 468px;
          padding: 20px 24px;
          display: flex;
          flex-direction: column;
          gap: 20px;
          border-right: 1px solid var(--bd-color1);
          overflow: auto;
          .pic{
            display: flex;
            gap: 40px;
            img{
              cursor: pointer;
              border-radius: 4px;
            }
            .icon{
              position: relative;
              display: flex;
              flex-direction: column;
              gap: 10px;
              .label{
                font-size: 16px;
                color: var(--text-color1);
              }
              .size{
                font-size: 12px;
                color: #9E91C2;
              }
              .ai1{
                position: absolute;
                left: 75px;
                bottom: 22px;
              }
              .ai2{
                position: absolute;
                right: -10px;
                bottom: 22px;
              }
            }
          }
          .form-item{
            display: flex;
            flex-direction: column;
            gap: 10px;
            .label{
              color: var(--text-color1);
              font-size: 16px;
            }
            .upload{
              cursor: pointer;
              font-size: 15px;
              color: #FFFFFF;
              padding: 4px 38px;
              background: #5A4BFF;
              border-radius: 4px;
              white-space: nowrap;
            }
            .ant-upload-list-text{
              color: var(--text-color1);
                .anticon{
                    color: var(--text-color1);
                }
              .ant-upload-list-item:hover{
                .ant-upload-list-item-info{
                  background-color: var(--bg-color26);
                }
              }
            }
            .ant-input{
              color: var(--text-color1);
              padding: 9px;
              height: 38px;
              border: none;
              background-color: var(--bg-color26);
              &::placeholder{
                color: var(--text-color9);
              }
            }
            textarea.ant-input {
              width: 100%;
              height: auto;
              resize: none;
              vertical-align: bottom;

            }
            .ant-select{
              height: 38px;
              .ant-select-selector{
                color: var(--text-color1);
                border: none;
                background-color: var(--bg-color26);
                .ant-select-selection-placeholder{
                  color: var(--text-color9);
                }
                .ant-select-selection-wrap{
                  height: 100%;
                }
              }
              .ant-select-arrow{
                color: var(--text-color9);
                svg{
                  font-size: 12px;
                }
              }
            }
            .ant-cascader{
              width: 100%;
            }
            .ant-select-multiple{
              .ant-select-selection-item{
                color: var(--text-color1);
                background: var(--bg-color27);
              }
            }
          }
          .isEdit{
            display: flex;
            justify-content: space-between;
            font-size: 16px;
            color: var(--text-color1);
          }
        }
        .detail{
          width: 800px;
          padding: 20px 24px;
          display: flex;
          flex-direction: column;
          gap: 10px;
          .labelBox{
            display: flex;
            align-items: center;
            gap: 20px;
            color: var(--text-color1);
            .label{
              flex: 1;
              font-size: 16px;
            }
            .ai{
              cursor: pointer;
              width: 20px;
            }
            .upload{
              cursor: pointer;
              svg{
                vertical-align: bottom;
                margin-right: 5px;
              }
            }
          }
          .ant-spin-nested-loading,.ant-spin-container{
            height: 100%;
          }
          .ant-input-wrapper{
            flex: 1;
            textarea{
              height: 100%;
              padding: 10px;
              color: #9E91C2;
              font-size: 16px;
              resize: none;
              background: #252450;
              border: 1px solid var(--bd-color1);
              &::placeholder{
                color: #9E91C2;
              }
            }
          }
        }
      }
      .waxberry-modal-footer{
        text-align: center;
        padding: 15px 20px;
        border-top: 1px solid var(--bd-color1);
        .ok{
          display: inline-block;
          cursor: pointer;
          color: #FFFFFF;
          font-size: 14px;
          font-weight: 500;
          padding: 8px 24px;
          border-radius: 4px;
          background: #4C74FF;
        }
        .close{
          display: inline-block;
          cursor: pointer;
          margin-right: 20px;
          color: var(--text-color1);
          font-size: 14px;
          font-weight: 500;
          padding: 7px 24px;
          border-radius: 4px;
          background: var(--bg-color26);
          border: 1px solid var(--bd-color8);
        }
      }
    }
  }
}
.ant-drawer{
  .ant-drawer-content{
    color: var(--text-color1);
    background: var(--bg-color26);
    .ant-drawer-header{
      border-bottom: 1px solid #343378;
      .ant-drawer-header-title{
        display: block;
        .ant-drawer-close{
          float: right;
          color: var(--text-color1);
        }
      }
    }
    .ant-form{
      .ant-form-item{
        label{
          color: var(--text-color1);
        }
        .ant-input{
          padding: 8px 11px;
          color: var(--text-color1);
          border: none;
          background-color: #222152;
          &::placeholder{
            color: #9E91C2;
          }
        }
        textarea.ant-input {
          resize: none;
        }
        .ant-select{
          height: 38px;
          .ant-select-selector{
            color: var(--text-color1);
            border: none;
            background-color: #222152;
          }
          .ant-select-arrow{
            color: var(--text-color9);
          }
        }
      }
    }
    .ant-drawer-footer{
      display: flex;
      gap: 5px;
      justify-content: flex-end;
      border-top: 1px solid var(--bd-color10);
      .ok{
        cursor: pointer;
        color: #FFFFFF;
        font-size: 14px;
        font-weight: 500;
        padding: 8px 24px;
        border-radius: 4px;
        background: #4C74FF;
      }
      .close{
        cursor: pointer;
        margin-right: 20px;
        color: var(--text-color1);
        font-size: 14px;
        font-weight: 500;
        padding: 7px 24px;
        border-radius: 4px;
        background: var(--bg-color26);
        border: 1px solid var(--bd-color8);
      }
    }
  }
}

